
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>保时捷冰雪试驾后台</title> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
		<link href="<{$SOURCE_Url}>css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="<{$SOURCE_Url}>css/font-awesome.min.css" /> 
		<!--[if IE 7]>
		<link rel="stylesheet" href="<{$SOURCE_Url}>css/font-awesome-ie7.min.css" />
		<![endif]--> 
		<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" /> 
		<link rel="stylesheet" href="<{$SOURCE_Url}>css/ace.min.css" />
		<link rel="stylesheet" href="<{$SOURCE_Url}>css/ace-rtl.min.css" /> 
		<!--[if lte IE 8]>
		<link rel="stylesheet" href="<{$SOURCE_Url}>css/ace-ie.min.css" />
		<![endif]-->
		<!--[if lt IE 9]>
		<script src="<{$SOURCE_Url}>js/html5shiv.js"></script>
		<script src="<{$SOURCE_Url}>js/respond.min.js"></script>
		<![endif]-->
	</head>

	<body class="login-layout">
		<div class="main-container">
			<div class="main-content">
				<div class="row">
					<div class="col-sm-10 col-sm-offset-1">
						<div class="login-container">
							<div class="center">
								<h1>
									<i class="icon-leaf green"></i>
									<span class="red">保时捷冰雪试驾</span>
									<span class="white">后台管理系统</span>
								</h1> 
							</div>

							<div class="space-6"></div>

							<div class="position-relative">
								<div id="login-box" class="login-box visible widget-box no-border">
									<div class="widget-body">
										<div class="widget-main">
											<h4 class="header blue lighter bigger">
												<i class="icon-coffee green"></i>
												请输入登陆账号密码：
											</h4> 
											<div class="space-6"></div>

											<form>
												<fieldset>
													<label class="block clearfix">
														<span class="block input-icon input-icon-right">
															<input type="text" id="un" class="form-control" placeholder="Username" />
															<i class="icon-user"></i>
														</span>
													</label>

													<label class="block clearfix">
														<span class="block input-icon input-icon-right">
															<input type="password" id="up" class="form-control" placeholder="Password" />
															<i class="icon-lock"></i>
														</span>
													</label>

													<div class="space"></div>

													<div class="clearfix"> 
														<button id="lgbtn" type="button" class="width-35 pull-right btn btn-sm btn-primary">
															<i class="icon-key"></i>
															Login
														</button>
													</div>

													<div class="space-4"></div>
												</fieldset>
											</form>
 
										</div><!-- /widget-main -->
 
									</div>
								</div><!-- /widget-body -->
							</div><!-- /login-box --> 
						</div><!-- /position-relative -->
					</div>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div>
		</div><!-- /.main-container --> 
		<script src="<{$SOURCE_Url}>js/jquery-1.4.4.min.js"></script> 
		<script type="text/javascript">
			window.jQuery || document.write("<script src='<{$SOURCE_Url }>js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script> 

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='<{$SOURCE_Url}>js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script> 
		<script type="text/javascript">
 $(function(){
 	$('#lgbtn').click(function(){
 		var da = {uname:$('#un').val(),upass:$('#up').val()};
 		if(da.uname.length<1){
 			alert('请输入账号'); return false;
 		}
 		if(da.upass.length<1){
 			alert('请输入密码'); return false;
 		}
 		var url = '/admin.php?c=main&a=dologin';
 		$.post(url,da,function(res){ if(res.s){ 
 			location.href = '/admin.php?c=main&a=index'; }else{ alert(res.m); } 
 		},'json')
 	});
 });
		</script> 
	</body>
</html>
